
def f(x):
	return isinstance(x,(int,float))

list1 = filter(f,[1,2,3,4,'6','7'])
print(list1)
#输出：
#<filter object at 0x000001B07FE901D0>
list2 = list(list1)
print(list2)
#输出：
#[1, 2, 3, 4]